﻿namespace WCBG.ToolsForUnity.Extension
{
    using System;
    using System.Runtime.CompilerServices;
    using UnityEngine;
    using WCBG.ToolsForUnity.Tools;

    public static class SpriteExtension
    {
        public static Texture2D ConvertToTexture2D(this Sprite sprite)
        {
            if (sprite == null)
            {
                return null;
            }
            return FTools.ConvertSpriteToTexture2D(sprite);
        }
    }
}

